package com.gin.supermarket_inventory_system.commodity.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.gin.database.base.BasePo;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.Comment;

/**
 * 生产商
 * @since : 2023/10/9 15:35
 * @author : ginstone
 * @version : v1.0.0
 **/
@Getter
@Setter
@TableName(value = CommodityProducerPo.TABLE_NAME, autoResultMap = true)
@Entity(name = CommodityProducerPo.TABLE_NAME)
@NoArgsConstructor
@Table
public class CommodityProducerPo extends BasePo {
    protected static final String TABLE_NAME = "tb_commodity_entity_producer";

    @Column(nullable = false, unique = true)
    @Comment("名称")
    String name;

    public CommodityProducerPo(String name) {
        super();
        this.name = name;
    }
}